﻿@model VOD.Models.Video

@{
    ViewBag.Title = "Details";
}

<h1>《@Model.Name》</h1>
<table width="600" border="1" cellspacing="0" cellpadding="10">
    <tr>
        <th width="75">名称：</th>
        <td colspan="3">@Model.Name</td>
        <th width="200" rowspan="6">
            <img id="VideoPic" src="@Url.Content("~/Content/Images/VideoImg/" + Model.VideoID + ".jpg")" onerror="javascript:this.src='@Url.Content("~/Content/images/nopic.jpg")'" width="170" height="214" />
        </th>
    </tr>
    <tr>
        <th>小标题：</th>
        <td width="76">@Model.ShortTitle</td>
        <th width="75">简介:</th>
        <td width="140">@Model.LongTitle</td>
    </tr>
    <tr>
        <th>年份：</th>
        <td>@Model.ShowYear</td>
        <th>导演：</th>
        <td>@Model.Director</td>
    </tr>
    <tr>
        <th>演员：</th>
        <td colspan="3">@Model.Actor</td>
    </tr>
    <tr>
        <th>语言：</th>
        <td>@Model.VideoLanguage.LangName</td>
        <th>地区:</th>
        <td>@Model.VideoArea.AreaName</td>
    </tr>
    <tr>
        <th>点击数：</th>
        <td>@Model.PlayRecords.Count</td>
        <th>类别：</th>
        <td>
            @foreach (var type in Model.VideoAndTypes) {
                @type.VideoType.TypeName@:&nbsp;
            }
        </td>
    </tr>
    <tr>
        <th>介绍：</th>
        <td colspan="4">@Model.Intro</td>
    </tr>
    <tr>
        <th>文件：</th>
        <td colspan="4">
            @foreach (var file in Model.VideoUrls) {
                <p><span>第@(file.VideoOrder)集</span> @file.VideoURL</p>
            }
        </td>
    </tr>
</table>
<p>
    @Html.ActionLink("修改视频信息", "EditInfo", new { id=Model.VideoID }) |
    @Html.ActionLink("返回列表", "Index")
</p>
